package com.wu.framework.upms.api;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;


/**
 * @description: 字典项转换
 * @author: 吴佳伟
 * @date: 2021/5/21
 */
@Api(tags = "字典操作")
@FeignClient(name = "upms-provider",url = "${feign.url.upms: }")
public interface DictionaryApi {

    /**
     * @description: 根据指定字典项查询字典值
     * @author: 吴佳伟
     * @date: 2021/5/21
    * @param: null
     * @return:
     */
    @ApiOperation("根据指定字典项查询字典值")
    @GetMapping("/api/getConvertDataByItems")
    Map<String, Map<String, String>> getConvertDataByItems(@RequestParam("convertItems") List<String> convertItems,
                                                           @RequestParam("order") boolean order);
}
